﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="DemoRegistration.aspx.cs"
    Inherits="Microserve.TeleEye.Web.DemoRegistration" Title="Untitled Page" %>

<%@ OutputCache Duration="60" VaryByParam="*" %>
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form runat="server" style="color: #444444; text-align: left;">
    <div id="fields" runat="server" class="fields">
        <div class="sectiontitle" style="margin-top: 10px;">
            Teleeye Live Demo
        </div>
        <div class="sectionsubtitle" style="margin-top: 10px;">
            Total Video Surveillance
        </div>
        <div id="instructions">
            <p>
                Welcome to live demo of Teleeye Product. Please fill up the form below to receive
                your username and password.</p>
            Items with <span style="color: #FF0000">* </span>are required.
        </div>
        <table>
            <tr>
                <td width="100px">
                    Name:<span style="color: #FF0000"> * </span>
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" class="inputfield"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Text="*required"
                        ControlToValidate="txtName"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="100px">
                    Company:<span style="color: #FF0000"> * </span>
                </td>
                <td>
                    <asp:TextBox ID="txtCompanyName" runat="server" class="inputfield"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*required"
                        ControlToValidate="txtCompanyName"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="100px">
                    Email:<span style="color: #FF0000"> * </span>
                </td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server" class="inputfield"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" Text="*required" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="RegularExpressionValidator" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*This 
                    is not a valid email address.</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td width="100px">
                    Contact number:
                </td>
                <td>
                    <asp:TextBox ID="txtContactNumber" runat="server" class="inputfield"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="100px" valign="top">
                    Message:
                </td>
                <td>
                    <asp:TextBox ID="txtIndustry" runat="server" class="inputfield" Height="91px" TextMode="MultiLine"></asp:TextBox>
                    <br />
                </td>
            </tr>
            <tr>
                <td width="100px" valign="top">
                    Demo sites:
                </td>
                <td>
                    <select onchange="javascript:toggleDemoSites();" style="margin-bottom:30px;">
                        <option>HD Demos</option>
                        <option>Worldwide Demos</option>
                    </select>
                    <div id="byType">
                        <div  style="float: left; margin-right:20px;">
                            <asp:RadioButton ID="rdoMx1" runat="server" Text="HD Demo 1" Checked="True" GroupName="DemoSites" />
                            <br />
                            <asp:RadioButton ID="rdoMx2" runat="server" Text="HD Demo 2" 
                                GroupName="DemoSites" />
                        </div>
                        <div>
                            <img src="static/img/mx833.png" />
                        </div>
                    </div>
                    <div id="byLocation" style="display: none;">
                        <div style="float:left; margin-right:20px;">
                            <asp:RadioButton ID="rdoHongkong" runat="server" Text="Hongkong" GroupName="DemoSites" />
                            <br />
                            <asp:RadioButton ID="rdoChina" runat="server" Text="China" GroupName="DemoSites" />
                            <br />
                            <asp:RadioButton ID="rdoUK" runat="server" Text="UK" GroupName="DemoSites" />
                            <br />
                            <asp:RadioButton ID="rdoSingapore" runat="server" Text="Singapore" GroupName="DemoSites" />
                        </div>
                         <div>
                            <img src="static/img/rx.png" />
                        </div>
                    </div>
                </td>
            </tr>
        </table>
        <br />
        Type the word to verify that you are human:
        <cc1:CaptchaControl ID="ccJoin" runat="server" CaptchaBackgroundNoise="High" CaptchaLength="5"
            CaptchaHeight="60" CaptchaWidth="200" CaptchaLineNoise="None" CaptchaMinTimeout="5"
            CaptchaMaxTimeout="240" />
        <asp:TextBox ID="txtCaptcha" runat="server" />
        <br />
        <asp:Button ID="btnSend" runat="server" Text="Register" OnClick="btnSend_Click" />
        <br />
    </div>
    <div style="margin-top: 20px; margin-bottom: 50px;" runat="server" id="pnlResponse"
        visible="True">
        <asp:Label ID="lblErrorMessage" runat="server" Font-Underline="False" ForeColor="Red"
            class="fields"></asp:Label>
        <p>
            <a runat="server" id="lnkOpenInNewWindow" target="_blank" visible="false" style="color: Blue;
                font-size: 12px; font-weight: bolder; float: right; text-decoration: underline;">
                View live demo in full window</a>
            <iframe runat="server" id="videodemo" src="http://www.rxdemo.phil.teleeye.net/" height="500px"
                width="100%" visible="false"></iframe>
        </p>
    </div>
    </form>
</asp:Content>
